package web.listner;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/*
* 监听服务器访问对象
* */
public class MyTwoListner  implements HttpSessionListener {
    int i=0;

    @Override
    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
             /*   i++;
        System.out.println("有新用户进入，在线访问人数"+i);*/
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
       /* i--;
        System.out.println("有用户退出！在线访问人数"+i);*/

    }
}
